@use "styles/Radius.module.scss";
@use "styles/Spacings.module.scss";
@use "styles/Typography.module.scss";
@use "styles/ZIndexes.module.scss";

.thread_item_wrapper {
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  gap: Spacings.$spacing03;
  align-items: center;
  overflow: hidden;

  .edit_thread_name {
    @include Typography.EllipsisOverflow;

    color: var(--text-3);
    border: none;
    height: 21px;
    outline: none;
    padding: 0;
    font-size: Typography.$small;
    background-color: var(--background-3);
    border-radius: Radius.$small;

    &:focus {
      box-shadow: none;
    }
  }

  .thread_item_name {
    @include Typography.EllipsisOverflow;

    &:hover {
      color: var(--primary-0);
    }
  }

  .icon_wrapper {
    visibility: hidden;
  }

  .options_modal {
    position: absolute;
    right: Spacings.$spacing02;
    z-index: ZIndexes.$modal;
  }

  &:hover {
    .icon_wrapper {
      visibility: visible;
    }
  }
}